<template>
  <MainFrame title="贷款申请管理">
    <el-row style="line-height: 30px; margin: 20px 0px 20px 0px">
      用户账号:
      <el-input
        v-model="input"
        placeholder="可查询对应的用户贷款详情"
        style="width: 15%; margin: 0 10px 0px 10px"
      ></el-input>
      <el-button >查询</el-button>
    </el-row>
    <el-row>
      <el-button >新增</el-button>
      <el-button >删除</el-button>
    </el-row>
    <el-row style="margin: 20px 0px 20px 0px">
      <el-table :data="tableData"  style="width: 90%">
        <el-table-column prop="userName" label="用户账号" >
        </el-table-column>
        <el-table-column prop="loanAmount" label="贷款金额" >
        </el-table-column>
        <el-table-column prop="loanTerm" label="贷款期限">
        </el-table-column>
        <el-table-column prop="repaymentMethod" label="还款方式" >
        </el-table-column>
        <el-table-column prop="status" label="状态" >
        </el-table-column>
        <el-table-column label="操作">
            <!--element-ui的版本低于2.5是不支持使用slot-scope="scope">的-->
          <!-- <template slot-scope="scope"> -->
            <el-button @click="handleClick(scope.row)" type="text" size="small"
              >进入审批</el-button>
          <!-- </template> -->
        </el-table-column>
      </el-table>
    </el-row>
  </MainFrame>
</template>
    
    <script>
/* eslint-disable */
// 单独引入ElMessageBox
import { ElMessageBox } from "element-plus";
import axios from "axios";
import MainFrame from "@/components/mainframe";

export default {
  name: "customer_manage",
  components: {
    MainFrame,
  },
  data() {
    return {
      tableData: [
        {
            userName: "贷款用户1",
            loanAmount: "111111",
            loanTerm: "1年",
            repaymentMethod: "等额本息",
            status: "现场调查中"
        },
        {
            userName: "贷款用户2",
            loanAmount: "2222222",
            loanTerm: "2年",
            repaymentMethod: "等额本息",
            status: "合规性审核中"
        },
        {
            userName: "贷款用户3",
            loanAmount: "3333333",
            loanTerm: "3年",
            repaymentMethod: "等额本金",
            status: "信贷审核中"
        },

      ],
    };
  },
  methods: {
    /**
     * 点击进入审批
     * @param {*} row 
     */
    handleClick(row){

    }
  },
};
</script>
    <style scoped>
</style>